/**
 * Created by Administrator on 2017/6/2 0002.
 */
define(["jquery", "template", "scprit/department/view/template/addGrowingRecord-tpl.js"], function ($, template, tpl) {
    var question = {};
    var inTable = function (data) {
        return template("userInfo", data);
    }
    var inTable2 = function (data) {
        return template("userInfoDetails", data);
    }
    question.infoInit = function (options) {
        $("body").append(tpl.init());
        var html = inTable(options.data);
        $(options.id).html(html);
    }
    question.infoInit2 = function (options) {
        $("body").append(tpl.init2());
        var html = inTable2(options);
        $(options.id).html(html);
    }
    return question;
});
